import System from '~/utils/System'

export default class ApiAuthRole {
    static list() {
        return System.http.get(
            {
                url: 'auth/role/list',
                method: 'post'
            },
        )
    }

    static roleList() {
        return System.http.get(
            {
                url: 'auth/role/roleList',
                method: 'post'
            },
        )
    }

    static save(param: any) {
        return System.http.get(
            {
                url: 'auth/role/save',
                method: 'post'
            },
            param
        )
    }

    static remove(id: string) {
        return System.http.get(
            {
                url: 'auth/role/remove',
                method: 'post'
            },
            { id }
        )
    }
}
